package com.fenyin.samples.study.jvm.classloader.example1;  

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 *@Title:  
 *@Description:  打印显示类加载器的树状结构
 *@Author:fengzhichao  
 *@Since:2012-9-21  
 *@Version:1.1.0
 */
public class ClassLoaderTree {
	
	private static final Log log = LogFactory.getLog(ClassLoaderTree.class);
	
	public static void main(String[] args){
		ClassLoader classLoader = ClassLoaderTree.class.getClassLoader();
		while(classLoader != null){
			log.info("类加载器："+classLoader.toString());
			classLoader = classLoader.getParent();
		}
	}
}
